home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000236_news@columbia.edu_Wed Apr 26 14:06:38 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA18059
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 26 Apr 1995 10:06:54 -0400
  3. Received: by apakabar.cc.columbia.edu id AA09767
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 26 Apr 1995 10:06:52 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: kermit script suspends with escape
  9. Date: 26 Apr 1995 14:06:38 GMT
  10. Organization: Columbia University
  11. Lines: 34
  12. Message-Id: <3nlk1e$9gl@apakabar.cc.columbia.edu>
  13. References: <EGORMAN.95Apr24171009@dev27>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <EGORMAN.95Apr24171009@dev27>,
  18. Eugene Gorman <egorman@dev27> wrote:
  19. >I have created a dialup kermit script that will suspend on the
  20. >appearance of an escape (ie ^[).  The site I connect to sends out and
  21. >escape right after the CONNECT message, and my kermit script stops.
  22. >If I hit return at this point, the script will continue and work just
  23. >fine.  I am trying to run this without human intervention.  Is there a
  24. >way to tell the kermit script to ignore escapes?  If I run this by
  25. >hand, I am not suspended.
  26. >
  27. This is a variation on a frequently asked question.  The question comes
  28. in so many forms, I don't really know how to rephrase it in a generic way,
  29. but the answer is always the same:
  30.  
  31.   DON'T USE THE CONNECT COMMAND IN A SCRIPT PROGRAM UNLESS YOU REALLY
  32.   WANT TO START THE TERMINAL EMULATOR.
  33.  
  34. Please read the documentation.  The CONNECT command "connects" your keyboard
  35. and screen to the remote host.  The CONNECT command stays active until you
  36. escape back to the command processor.  Conversely, the command processor
  37. is not active during CONNECT mode, and thus your script does not execute
  38. while CONNECT mode is active.
  39.  
  40. In a script program, you replace the CONNECT command with INPUT, OUTPUT,
  41. and IF FAIL / IF SUCCESS commands to do under program control what you
  42. would have done by hand / by eye in CONNECT mode.
  43.  
  44. In this case, your Kermit script stops because you have entered CONNECT
  45. mode, the host sends an Escape, and the terminal emulator is waiting for
  46. the rest of the escape sequence.  Cure: don't do that.  Use INPUT.  Read
  47. the book.  Look at the numerous examples of how to construct login 
  48. scripts.
  49.  
  50. - Frank